package top.martinzh.stock.entity;

import java.util.Date;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class Trade {

	private String id;
	private Company company;
	// 委托时间
	private Date date = new Date();
	private double price;
	private int amount;
	private TradeType tradeType;
	// 状态：委托中，已成交，已撤销，成交失败
	private TradeStateEnum state;
	// 成交时间
	private Date tradeDate;
}
